/*
 * This is the test class of the project which is runnable
 */
package edu.iyte.ceng431.hw03.cdplayer.controller;

import edu.iyte.ceng431.hw03.cdplayer.model.CDPlayer;
import edu.iyte.ceng431.hw03.cdplayer.view.MainFrame;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.jvnet.substance.skin.SubstanceBusinessLookAndFeel;

/**
 *
 * @author cihat
 */
public class Test {

    public static CDPlayer cdPlayer;
    public static MainFrame mainFrame;

    public static void main(String args[]) {

        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                try {
                    UIManager.setLookAndFeel(new SubstanceBusinessLookAndFeel());
                    cdPlayer = new CDPlayer();
                    mainFrame = new MainFrame();
                } catch (UnsupportedLookAndFeelException ex) {
                    Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
                }
                new CDPlayerController(cdPlayer, mainFrame);
            }
        });
    }
}
